import pmRequest from '../../index'
import { IDataType } from '../../type'
export function getPageListData(url: string, queryInfo: any) {
  return pmRequest.post<IDataType>({
    url: url,
    data: queryInfo
  })
}

export function deletePageData(url: string) {
  return pmRequest.delete({ url })
}

export function createPageData(url: string, newData: any) {
  // console.log('发送', url, newData)
  return pmRequest.post({ url, data: newData })
}

export function editPageData(url: string, editData: any) {
  return pmRequest.patch({ url, data: editData })
}
